package OfferCode;

/**
 * @Author Kechelle
 * @Date 2020/9/10 20:22
 * @Version 1.0
 */
public class Code5 {
    public static String replaceSpace(String s) {
        String res = s.replace(" ","%20");

        return res;
    }

    public static void main(String[] args) {
        String s = "We are happy";
        System.out.println(Code5.replaceSpace(s));
    }
}
